﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication2
{
    class SnakePart
    {
        private int x;
        private int y;
        private int type; // 0 for head ; 1 for body ; 2 for tail
        private int direction; // 0 for UP ; 1 for RIGHT ; 2 for DOWN ; 3 for LEFT
        


        public SnakePart()
        {
            this.x = 13;
            this.y = 12;
            this.type = 0;
            this.direction = 4;
          
        }
        public SnakePart(int x, int y, int type, int direction)
        {
            this.x = x;
            this.y = y;
            this.type = type;
            this.direction = direction;
         
        }
        public int getDirection() {
            return this.direction;
        }
        public void setDirection(int dir) {
            this.direction = dir;
        }
        public int getX()
        {
            return this.x;
        }
        public void setX(int x)
        {
            this.x = x;
        }
        public int getY()
        {
            return this.y;
        }
        public void setY(int y)
        {
            this.y = y;
        }

        public int getType()
        {
            return this.type;
        }
        public void setType(int type)
        {
            this.type = type;
        }

    }
}
